<!DOCTYPE html>
<html>
<head>
    <title>溜冰的测试报告</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
</head>
<body>
    <div class="container">
        <div class="row">
            <div class="col-xs-12">
                <h2 class="text-capitalize">溜冰的测试报告</h2>
                <p class='attribute'><strong>Start Time: </strong>2021-03-15 00:13:20</p>
                <p class='attribute'><strong>Duration: </strong>36 ms</p>
                <p class='attribute'><strong>Summary: </strong>Total: 3, Pass: 0, Error: 3</p>
            </div>
        </div>
        <div class="row">
            <div class="col-xs-12 col-sm-10 col-md-10">
                <table class='table table-hover table-responsive'>
                    <thead>
                        <tr>
                            <th>__main__.TestCaseFormExcel</th>
                            <th>Status</th>
                            <th></th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr class='warning'>
                            <td class="col-xs-10">test_01_00001_GG_001</td>
                            <td class="col-xs-1">
                                <span class="label label-warning" style="display:block;width:40px;">Error</span>
                            </td>
                            <td class="col-xs-1">
                                <button class="btn btn-default btn-xs">View</button>
                            </td>
                        </tr>
                        <tr style="display:none;">
                            <td class="col-xs-9" colspan="3"><p>GG_001
</p><p style="color:maroon;">AttributeError: 'FileToCase' object has no attribute 'testName'</p><p style="color:maroon;">Traceback (most recent call last):
  File "D:\python_workspace\myFamerTest\venv\lib\site-packages\ddt.py", line 182, in wrapper
    return func(self, *args, **kwargs)
  File "D:/python_workspace/F10YHTest/MyFrameTest/test_case/test_cases_driver.py", line 25, in test_01
    print(case.testName, '</p><p>')
AttributeError: 'FileToCase' object has no attribute 'testName'
</p>
                            </td>
                        </tr>
                        <tr class='warning'>
                            <td class="col-xs-10">test_01_00002_POST_001</td>
                            <td class="col-xs-1">
                                <span class="label label-warning" style="display:block;width:40px;">Error</span>
                            </td>
                            <td class="col-xs-1">
                                <button class="btn btn-default btn-xs">View</button>
                            </td>
                        </tr>
                        <tr style="display:none;">
                            <td class="col-xs-9" colspan="3"><p>POST_001
</p><p style="color:maroon;">AttributeError: 'FileToCase' object has no attribute 'testName'</p><p style="color:maroon;">Traceback (most recent call last):
  File "D:\python_workspace\myFamerTest\venv\lib\site-packages\ddt.py", line 182, in wrapper
    return func(self, *args, **kwargs)
  File "D:/python_workspace/F10YHTest/MyFrameTest/test_case/test_cases_driver.py", line 25, in test_01
    print(case.testName, '</p><p>')
AttributeError: 'FileToCase' object has no attribute 'testName'
</p>
                            </td>
                        </tr>
                        <tr class='warning'>
                            <td class="col-xs-10">test_01_00003_GET_001</td>
                            <td class="col-xs-1">
                                <span class="label label-warning" style="display:block;width:40px;">Error</span>
                            </td>
                            <td class="col-xs-1">
                                <button class="btn btn-default btn-xs">View</button>
                            </td>
                        </tr>
                        <tr style="display:none;">
                            <td class="col-xs-9" colspan="3"><p>GET_001
</p><p style="color:maroon;">AttributeError: 'FileToCase' object has no attribute 'testName'</p><p style="color:maroon;">Traceback (most recent call last):
  File "D:\python_workspace\myFamerTest\venv\lib\site-packages\ddt.py", line 182, in wrapper
    return func(self, *args, **kwargs)
  File "D:/python_workspace/F10YHTest/MyFrameTest/test_case/test_cases_driver.py", line 25, in test_01
    print(case.testName, '</p><p>')
AttributeError: 'FileToCase' object has no attribute 'testName'
</p>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                Total: 3, Pass: 0, Error: 3 -- Duration: 36 ms
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
    <script src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function(){
            $('td').on('click', '.btn', function(e){
                e.preventDefault();
                e.stopImmediatePropagation();
                var $this = $(this);
                var $nextRow = $this.closest('tr').next('tr');
                $nextRow.slideToggle("fast");
                $this.text(function(i, text){
                    if (text === 'View') {
                        return 'Hide';
                    } else {
                        return 'View';
                    };
                });
            });
        });
    </script>
</body>
</html